<%@ include file="/taglib-imports.jspf" %>
	
<bean:define id="codiFacturaValue" name="form" property="factura.codiFactura"/>
<bean:define id="dataValue" name="form" property="factura.dataEmissio"/>
<bean:define id="idValue" name="form" property="factura.partDeLaFactura.id"/>
	

<tiles:insert definition="backend.layout">
    <%@ include file="/edu/uoc/tfc/gui/parts/imprimirFactura/imprimir-factura-dades-javascript.jspf" %>
    <tiles:put name="body" type="string">
		<emkt:form id="partForm" type="<%=FormType.Creation%>">
			
			<h3><bean:message key="cu.imprimirFactura.missatge"/></h3>
			<br>
			<emkt:hiddenField
				name="factura.partDeLaFactura.id"
				value="<%=idValue.toString()%>"
			/>
			<emkt:textField 
				label="dto.part.codiFactura" 
				name="factura.codiFactura" 
				value="<%=codiFacturaValue.toString()%>" 
				readonly="true"
			/>	
			
			<emkt:textField		
				label="dto.part.dataFactura" 
				name="factura.dataEmissio" 
				value="<%=dataValue.toString()%>" 
				readonly="true" 
			/>			
			
			<div class="form-actions">
        		<%@ include file="/edu/uoc/tfc/gui/parts/imprimirFactura/imprimir-factura-dades-imprimir-factura.jspf" %>
			</div>
		</emkt:form>
    </tiles:put>
</tiles:insert>